<style type="text/css">
    .padLefRig0 {
        padding-left: 0px;
        padding-right: 0px
    }
    /*.marLef030{
        margin-left: -30px;
    }*/
</style>
<div class="container-fluid form-horizontal ">
    <form name="updatePriceCalendar" class="form-horizontal form-validation">
        <div class="modal-header">
            <h4 class="modal-title">设置时间价格</h4>
        </div>
        <div class="modal-body">
            <div class="container-fluid">
                <!--<div class="col-xs-12 row">
                    <div class="col-xs-2">
                        添加开团日期 :
                    </div>
                    <div class="col-xs-10 row">
                        <div class="col-xs-12 row">
                            <div class="col-xs-6">
                                <div class="col-xs-12">
                                    <div class="input-group">
                                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.label" is-open="date.opened" close-text="Close"
                                            readonly />
                                        <span class="input-group-btn">
                                            <button type="button" class="btn btn-default"
                                                    ng-click="dateOpen($event, date)">
                                                <i class="glyphicon glyphicon-calendar"></i>
                                            </button>
                                            <a class="btn btn-success " ng-click="addSelectDate()">添加</a>
                                        </span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-6 row">
                                <div class="col-xs-5" ng-repeat="date in result.selectedDate" ng-dblclick="removeSelectDate($index)">
                                    <a class="btn btn-info btn-sm">
                                        {{date.date}} &nbsp;&nbsp;<i class="glyphicon glyphicon-remove" ng-click="removeSelectDate($index)"></i>
                                    </a>
                                    <br/>
                                    <br/>
                                </div>
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <br/>
                    </div>
                </div>-->
                <div class="col-xs-12 row">

                    <div class="form-group">
                        <div>
                            <label class="col-sm-2 col-xs-12 control-label">开始日期</label>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="tour.start.date.label"
                                    is-open="tour.start.date.opened" readonly close-text="关闭" current-text="今天" clear-text="清除" max-date="today_end"/>
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default"
                                                ng-click="open($event, tour.start.date)">
                                            <i class="glyphicon glyphicon-calendar"></i>
                                        </button>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <!--<div class="col-xs-3" ng-repeat="date in selectedDate" ng-dblclick="removeSelectDate($index)">
                                <a class="btn btn-info btn-sm">
                                    {{date.date}} &nbsp;&nbsp;<i class="glyphicon glyphicon-remove" ng-click="removeSelectDate($index)"></i>
                                </a>
                                <br/>
                                <br/>
                            </div>-->
                        </div>
                    </div>
                    <div class="form-group">
                        <div>
                            <label class="col-sm-2 col-xs-12 control-label">结束日期</label>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="tour.end.date.label"
                                    is-open="tour.end.date.opened" readonly close-text="关闭" current-text="今天" clear-text="清除" />
                                    <span class="input-group-btn">
                                        <button type="button" class="btn btn-default"
                                                ng-click="open($event, tour.end.date)">
                                            <i class="glyphicon glyphicon-calendar"></i>
                                        </button>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <!--<div class="col-xs-3" ng-repeat="date in selectedDate" ng-dblclick="removeSelectDate($index)">
                                <a class="btn btn-info btn-sm">
                                    {{date.date}} &nbsp;&nbsp;<i class="glyphicon glyphicon-remove" ng-click="removeSelectDate($index)"></i>
                                </a>
                                <br/>
                                <br/>
                            </div>-->
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-sm-2 control-label">&nbsp;</label>
                        <div class="col-sm-10">
                            <label class="checkbox-inline" ng-repeat="obj in week">
                                <input type="checkbox" ng-model="obj.checked"> {{obj.name}}
                            </label>
                        </div>
                    </div>



                    <div class="form-group">
                        <label class="col-sm-2 col-xs-12 control-label">门市价格</label>
                        <div class="col-sm-4 col-xs-12">
                            <div class="input-group" style="width: 60%;">
                                <!-- <span class="input-group-addon">¥</span> -->
                                <input type="number" class="form-control" placeholder="请输入门市价格" min='0' ng-model="saleobj.market_price">
                            </div>
                        </div>
                        <div class="col-sm-6 mt10">
                            <font face="Courier" class="text-danger"></font>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-12 control-label">指导价格</label>
                        <div class="col-sm-4 col-xs-12">
                            <div class="input-group" style="width: 60%;">
                                <!-- <span class="input-group-addon">¥</span> -->
                                <input type="number" class="form-control" placeholder="请输入指导价格" min='0' ng-model="saleobj.guide_price">
                            </div>
                        </div>
                        <div class="col-sm-6 mt10">
                            <font face="Courier" class="text-danger">APP(微信)的游客支付价格</font>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-12 control-label">成本价格</label>
                        <div class="col-sm-4 col-xs-12">
                            <div class="input-group" style="width: 60%;">
                                <!-- <span class="input-group-addon">¥</span> -->
                                <input type="number" class="form-control" placeholder="请输入分销商成本价格" min='0' ng-model="saleobj.cost_price">
                            </div>
                        </div>
                        <div class="col-sm-6 mt10">
                            <font face="Courier" class="text-danger">与分销商结算价</font>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 col-xs-12 control-label">采购价格</label>
                        <div class="col-sm-4 col-xs-12">
                            <div class="input-group" style="width: 60%;">
                                <!-- <span class="input-group-addon">¥</span> -->
                                <input type="number" class="form-control" placeholder="请输入供应商成本价格" min='0' ng-model="saleobj.purchase_price">
                            </div>
                        </div>
                        <div class="col-sm-6 mt10">
                            <font face="Courier" class="text-danger">与供应商结算价</font>
                        </div>
                    </div>

                    <div class="form-group" >
                        <label class="col-sm-2 col-xs-12 control-label">当前库存</label>
                        <div class="col-sm-4 col-xs-12">
                            <div class="input-group" style="width: 60%;">
                                <!-- <span class="input-group-addon">¥</span> -->
                                <input type="number" class="form-control" placeholder="库存" min='0' ng-model="saleobj.current_stock_num" >
                            </div>
                        </div>
                        <div class="col-sm-6 mt10">
                            <font face="Courier" class="text-danger">当前库存</font>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary" type="button" ng-click="save()">保存</button>
            <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
        </div>
    </form>
</div>